package com.qzsoft.zhjd.asphalt.modules.asphaltmatch.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @ClassName AsphaltMatchHotEntity
 * @Description 生产配比热料筛分级配
 * @author linhuawei
 * @since 2021-09-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ToString
@TableName("n_asphalt_match_hot")
public class AsphaltMatchHotEntity {

    /**
     * 配置主键
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 级配主键
     */
    @NotBlank(message = "未知的生产配比")
    @Length(max = 36,message = "未知的生产配比")
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String matchId;

    /**
     * 筛孔大小
     */
    @NotNull(message = "筛孔大小不可为空")
    @DecimalMax(value = "100",message = "筛孔大小不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private BigDecimal sieveSize;

    /**
     * 设计生产配比
     */
    @NotNull(message = "设计生产配比不可为空")
    @DecimalMax(value = "100",message = "设计生产配比不能超过{value}")
    private BigDecimal target;

    /**
     * 骨料1占比
     */
    @DecimalMax(value = "100",message = "骨料1占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal gravel1;

    /**
     * 骨料2占比
     */
    @DecimalMax(value = "100",message = "骨料2占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal gravel2;

    /**
     * 骨料3占比
     */
    @DecimalMax(value = "100",message = "骨料3占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal gravel3;

    /**
     * 骨料4占比
     */
    @DecimalMax(value = "100",message = "骨料4占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal gravel4;

    /**
     * 骨料5占比
     */
    @DecimalMax(value = "100",message = "骨料5占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal gravel5;

    /**
     * 骨料6占比
     */
    @DecimalMax(value = "100",message = "骨料6占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal gravel6;

    /**
     * 矿粉1占比
     */
    @DecimalMax(value = "100",message = "矿粉1占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal powder1;

    /**
     * 矿粉2占比
     */
    @DecimalMax(value = "100",message = "矿粉2占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal powder2;

    /**
     * 矿粉3占比
     */
    @DecimalMax(value = "100",message = "矿粉3占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal powder3;

    /**
     * 再生料占比
     */
    @DecimalMax(value = "100",message = "再生料占比不能超过{value}")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal recycledMaterial;


}
